(function($){
	function formResult(msg, state) {
        layer.closeAll();
        if(state == 0) {
            layer.alert(msg, {icon: 5});
        } else {
            layer.confirm('修改成功！', {icon: 6, title:'系统提示', btn: ['确定']}, function(index){
                location.href = $('#form_update').attr('urlList')
            });
        }
    }
    $(function(){
    	window.formResult = formResult;

    	$('#form_update').on('valid.form', function(e, form){            	
            layer.load();
            form.submit();
        });
    });
})(jQuery);